package com.qboot.generate.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.*;
import com.qboot.common.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;


/**
 * 模块 实体类
 *
 * @author Tellsea
 * @date 2023-02-08
 */
@Data
@ApiModel("模块")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class GenModule extends BaseEntity {

    /**
     * 主键ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 父级ID
     */
    @Excel(name = "父级ID")
    private Long parentId;
    /**
     * 模块名称
     */
    @Excel(name = "模块名称")
    private String title;
    /**
     * 模块功能
     */
    @Excel(name = "模块功能")
    private String name;
    /**
     * 端口
     */
    @Excel(name = "端口")
    private Integer port;
    /**
     * 模块介绍
     */
    @Excel(name = "模块介绍")
    private String description;
    /**
     * 排序
     */
    @Excel(name = "排序")
    private Integer sort;
    /**
     * 数据状态 1-正常 2-删除
     */
    @TableLogic
    @ApiModelProperty(hidden = true)
    @TableField(fill = FieldFill.INSERT)
    private Integer deleteStatus;
}
